#include <stdio.h>

int main (int argc, char** argv){
    if (argc > 1){
        if (fopen(argv[1], "r") == NULL){
            printf("%s: unable to open file %s\n", argv[0], argv[1]);
        }
        else{
            printf("%s: file %s was open\n", argv[0], argv[1]);
        }
    }
    else{
        printf("%s: file to open was not specified\n", argv[0]);
    }
}
